package health

import (
	"gitcode.com/G-YT/iHealth25/server/api/v1"
	"gitcode.com/G-YT/iHealth25/server/middleware"
	"github.com/gin-gonic/gin"
)

type ShipuRouter struct {
}

// InitShipuRouter 初始化 Shipu 路由信息
func (s *ShipuRouter) InitShipuRouter(Router *gin.RouterGroup, PublicGroup *gin.RouterGroup) {
	shipuRouter := Router.Group("shipu").Use(middleware.OperationRecord())
	pubRouter := PublicGroup.Group("shipu")
	var shipuApi = v1.ApiGroupApp.HealthApiGroup.ShipuApi
	{
		shipuRouter.POST("createShipu", shipuApi.CreateShipu)             // 新建Shipu
		shipuRouter.DELETE("deleteShipu", shipuApi.DeleteShipu)           // 删除Shipu
		shipuRouter.DELETE("deleteShipuByIds", shipuApi.DeleteShipuByIds) // 批量删除Shipu
		shipuRouter.PUT("updateShipu", shipuApi.UpdateShipu)              // 更新Shipu
	}
	{
		pubRouter.GET("findShipu", shipuApi.FindShipu)       // 根据ID获取Shipu
		pubRouter.GET("getShipuList", shipuApi.GetShipuList) // 获取Shipu列表
	}
}
